<template>
  <div>
    <!-- 输出每一选项 -->
    <ul class="box">
      <li  v-for="(item,index) in arry" :key="index">{{item}}
        <input type="checkbox"  :value="item" v-model="arr">
      </li>
    </ul>
    <!-- 点击对应的input框 显示相应的汉子 -->
    <ul>
      <li v-for="(item,index) in arr" :key="index">{{item}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data(){
    return{
      arry:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      arr:[]
    }
  }

}
</script>

<style>
.box{
  list-style: none;
  display: flex
}
</style>